ex3 - use floats