finish functional JS #9