added class habitat with overloaded constructor