API for lesson