runs program with classes in separate files