working on number 9, encountering runtime error