Learning how to write node applications