Code for Q5 is implemented; need to write stuff down.