object didItSnow refactored with procedure method, passing at main code