after completing programming assignment 2