Contract solution