adding s3 functions for occurrences
adding s3 functions for occurrences