agreement in writing — Legal Definition, Examples & Cases