def find_chapter(slug)
      chapters.find { |c| c.slug.to_s == slug.to_s }
    end
def find_chapter(slug)
      chapters.find { |c| c.slug.to_s == slug.to_s }
    end
Tries to find chapter in this course by chapter slug.