Update week2Assignment.R