This is the revised version of the third part of my week four assignment