Wrote in partial function