Just an old C# assignment from engineering college