Created Node Class and Direction enum