Did programming assignment 3