Computing for data analysis: assignment 2 (parts 1 & 2)