Costfunction working - Still we can only add lectures..