first effort to switch to class-based views