It may not be the simplest way of doing this. I wanted to practice by making the code shorter.

Ok. Thanks a lot. I practice more, but I have one question. how can I writ any thing instaed H1, H2,....? for example I write A, K, M, B ineasted H1, H2,H3 and H4, and on the underneath I write for example j, i , l , o