How fish learned to walk