Implement basic functions for training activity