A working version but it contains a bug with the convertion of the float value.