test codes i found on the internet while learning more about c#