Implementation for the quiz set up function