Children spent time writing to residents at a nursing home