Successfully build the function of attend course and re-attend course