erim programming exercise