done with partial functions samples