Constructor added and plot