Added generateGraph function
Moved RT from layer 1 to its own layer