Added "Magnetometer" example.