update example
adding cc file
fix syntax errors
adding clock example