Implement problem 4

implement the functions for hurricane case and thunderstorm case