two classes and a method