submitted programming assignment 2