Added basic parts of Node and Edge classes.