Added solution to Q6