switched from class to module