Start of controller class