Basic dependency injection in OCaml with objects