Add type to lesson entity. Create expression class.