start of controller class, introduction of repl