First Question

Code created to answer first question