completed programming assignment 1