completed node beginner's book exercise