It is an exercise for C#