Completed programming assignment of week2