submission of programming assignment 2, tested