add plot functions

alpha version