adding a functions activity