question 1a code done