Solution to Q1 added