adding a getForecasts function