Implemented Week-5-Assignment-4.