Added main file for question 4 and test files for question 4 and 5