programming assignment 2:1