Second data analysis assignment for coursera's data analysis MOOC