instantiate and apply the classes