added simple plot routine