Move node into its own class