renamed SQUARES to Squares to follow Scala's conventions