updating Rectangle class/psuedo-struct