Detailed and well expounded version of week 1 assisgnment