fixed data types for dog and added spec