Ducktyping in Rice example