Declaring function activity