Experimenting with hierarchical data structure
Added function offset_on_scale