Graph rewritten, added second part of the task
Task not fully completed yet.