Added some methods to geometry