circadian rhytm example in C