trying to incorporate the Print::write()