programming excercises from course prg3