starting work on functions, segwaying into the C# project, as that's a bit easy to code