Organized the code in a module.