created functions

created functions by implementing code and comments in project template