public function end()
 {
     $timeSpent = time() - $this->startTime;
     $this->session->update(['time_spent' => $timeSpent, 'num_correct' => $this->numCorrect, 'num_incorrect' => $this->numIncorrect]);
 }