adding node class and basic-case parsing