initial HW4 and create getData, maxDistinctMonth function