In this paper, we will consider the problem of courses timetabling in a small educational institute. We will present the mathematical model considering six hard constraints (compelling constraints) and five soft constraints (constraints that are lot compelling, but regarding them results increasing the utility of timetable). To formulating the model we will use a type of goal programming. In this paper we will try to define decision variables, hard constraints, soft constraints and objective function in a step by step direction. Afterward we will test the model on a mathematical example.