First attempt of Programming Assignment 2