Added functions to Rectangle class.