Here is our final code. 

Variable names need to be changed and documentation needs to be added