Filling in the Controller.cc file