wrote the forecast script