How to apply offer and acceptance in contract law