make class for plot