constructor added to Activity