using a pawl and ratchet wheel mechanism