cleaned up F# example