adding a lame factory constructor and creating clock