updated with the version from coursera
modifed the spelling mistakes