implemented the get_occurrence method to get specified occurrences of a given master event