public function findByName($name)
    {
        foreach ($this->exercises as $exercise) {
            if ($name === $exercise->getName()) {
                return $exercise;
            }
        }

        throw new InvalidArgumentException(sprintf('Exercise with name: "%s" does not exist', $name));
    }