Used custom rectangle class to stash stuff in object.