made changes to existing variables and functions, also added 2 new
functions, returned the values and outputed the result.