example using floats