Learning to float is the key to successful swimming