Update 7.rkt

Added error checking and tests