finish up last function of code also had to refresh with the docs to understand what they wanted