In this article I will write the code first about the classes and explain you later how its achieved in c#.
Editorial changes — reviews, status changes and edits — are shown to the author of this article and to the editors.