Dynamically allocated dog

Updated addToDog to return a pointer to a dynamically allocated dog