class definitions for default and farmer