creation the functions

completed file