Added Rect Object

Added drawable rectangle and relevant supporting functions/classes.