Implement first version of list based graph