Added plot class
Added factory for plot creation