What are the four things a habitat provides for a living thing?