Exercises in electrical and magnetic measurement