working on error handling for quiz