Allow multiple lesson of similar type. Modularise some part of code