Added implementation for second programming assignment for the course.