quiz code from tutorial