solution to peer assignment 1 for reproducible research