refactored clock file into coffee