created controller class with spec
added controller factory