To clean up directories
Updated to reflect the completion of problem 2