Refactord course activity