working on last programming assignment