How are farm animals classified based on their feeding habits?