Graph class added and basic methods implemented