Removed mag_ as an instance variable and just made it an local variable n in makeMeasurement() method