Response to programming assignment 2