code for 1-7 and 19 user story added