Now object has dynamically allocated memory