Creating the controller construct