enhanced hw5-3 answer