Adds resource node

Beginning of work on #1.