Title: X-ray and optical studies of late-type stellar coronae and chromospheres