use vectors in ball

save on s
cout data on d
open file on o