Added the four functions to the top of the view controller.m file