Implemented week1/exercise3