Title: A study of line formation in the chromosphere and corona