updated rect attribute positioning
added rect equality and nonzero methods