Updated Node class to store angle information in a dict