basic structure for clock