updated rect constructor
updated draw methods with minor adjustments