added rectangle class