rect class