Use integer code for Term model and move Term to schedule app. #60