editied John's quiz module