public function setShowSolution($showSolution)
    {
        if (is_bool($showSolution)) {
            $this->showSolution = $showSolution;
        } else {
            $msg = "ShowSolution must be a boolean, '" . gettype($showSolution) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }