single controller for each class