added getByActivityType to Activity class