#3 I create new class Graph and two clases wich implements Iterator to realise DFS and BFS methods