wiring up the classes