Reset mass value when density is changed.
Add comment.
Define density getter just once, instead of for every entity instance.