Assignment 2 Final code 

Fully cleaned up:
indented spaces after semicolons
Braces are not broken after new line
changed maximumOrdinalNumber variable to maxOrdinalNumber