convert to fsharp

I only added one type, two operators, five functions and one module that contains one function.