initial implementation of a Plot class