added number_in_month and some test cases