compound consisting of hydrogen and carbon atoms