add two function for Rectangle