Changed java version to 1.6. Converted Saying from Java to Scala