Added some utility methods and a graphics object