how to build a clock mechanism