For programming exercise in exam