assignment 2 code, initial version 1.0

initial upload of answers to programming assignment #2