added a quiz function