Added the initial code for functions