refactor and start homework q for node fs hw