Implementation of rainfalldata viewmodel