adding full quiz functionality