Completed 1st part of the second exercise for intro to javascript