CS377 - Hw3 answer