Carbon and nitrogen cycles