Added functions code and comments