added a basic chart functionality