Basic code structure and clock frame drawing