Living things are classified as producers or consumers according to