Added implementation of generic function plot