implement example graph