Added a rectangle shape
Updated global dist