Further refactoring of code. Added a separate field for storing the physical size (bounding box) of the objects.