Modification made based on Question 1
Worked on Q1, Q2, Q3