Added delete method
Added comments to make it more understandable