Added first part of graph stuff