started all 5 functions added syntax for while and for loops