made nws a class
removed print statements
change for nws now a class