updated Dog constructor