I am a beginner to TikZ. I want to reproduce 2 below diagrams. I was reading many tutorials and blogs about TikZ and was trying to implement but I still can not generate something like this 2 images. Can any one help me to reproduce this 2 diagrams? Thank you so much.