tidy
Refactored
Fixed deleting from the parent
Added a new test
Fixed tests