adding programming assignment 3