Put code into a class.