change LecagyBase from class to module