added Graph classes and processing with scrollbar