Hi, Inuka:
I think step 2 - check the number of records to be 7 is unncessary. The database file would possibly grow as we are required to implement the createRecord method, unless you are referring to the very first initialization of the system.
I agree with Anton that checking the cookie value alone is sufficient. Meanwhile, I am curious about how you check the value. Do you
1. hardcode the value in your soucecode OR
2. set it and store it in the property file OR
3. guess it from the file name
OR
4. some other ways...
What I found interesting is that the database file name reflects the magical cookie value. For my URLyBird 1.2.3 assignment, the db file is "db-1x3.db" and the magical cookie value is "00 00 01 03"; while my friend is doing the Contractor assignment, her db file is "db-2x2.db" and the magical cookie value is "00 00 02 02". Of course, this is a bad choice as no official guarantee is provided.
By checking the cookie value, do u mean we know the value prior to running the applicatoin? Though the value is not specified in the instruction.