hw03 all 3 programs