The red pencil kata...in java