created rectangle class