hw04 4 programs