Create a << method for a class