Adding method activityPerType()