Basic code for Measurement class