The compiler is confused because it found statements that should be inside of a method that were not in a method.