Implemented plot creation