first try at drawing graph