files for question 3 folder
cleanup of the code for both questions