q3 isn't defined above. NameError