Finished typing up everything except for qn 7