Don't rush to program.
Think about the problem.
Consider how you are going to organise any data.
Consider how you are going to search or sort the data.
Consider modularising your code with functions and procedures.