create graph class and started scaling