added rect class