almost complete/ made work with writeToWord class