It's more or less pretty self-explained for you as a sort of algorithm
already. What you need to do, in some form or another is:

*Define a main method
*Find out if you can use additional methods...