As part of assignment 2 , modified the added code to the empty functions