Added month_range function (homework 1)