created code that doesn't compile, but does represent the basic flow of the program
fixed problem with reference to the measurement type