Little problem with a function for a total newbie ... - C#