Implemented datarect.py