quiz functionality working