create a method to test multiple classes