added rectangle class rect