Finished writing code for Q1