added optional exercise to calculate error for test set