A bit of code I wrote to help me learn some programming concepts using Java