Added method to rectangle