My submission of programming assignment 2