Added plot class implementation.