adding some functionality
Files from week3 - DirectedGraph