Chart utils
start class refactoring