Use nested classes