no need to drereference in println!
explicitly create a slices with .to_slice()
adopt code for chapter-10