Added solution to Q7