first version of root programm to create graphs