Teaching mechanics with individual exercise assignments and automated correction