adding functions

added entity, activity and wasDerivedFrom