my solution for node-school problem