Which class of animals can live both on land and in water?