did this simple assignment way back, and thought its a good idea to push it to github