Wrong place for internal class definition