functions instead of methods in a class