rewrote the width and height fields of the rectange prototype as nullary functions