quiz working except output