generated java code for mission 1