finished the programming assignment