updated hw5.rkt