Added Functions.cs in logic folder