working through some challenges from nodeschool.io