Fixed Rob's issue #925.

Fixed Sum.scala wierdness and fixed style.