Base classes for Activity and Service