completed prog assign2