Possible solution for basic nodejs exercises