Added basic graphing functionality