added food and function domain class (with test)