beginning of a logic of quiz