Factory Pattern

Factory pattern in F#