Molecular unit of heredity in a living organism, comprising a contiguous sequence of DNA or RNA, coding for a Protein or RNA chain, which in turn has a function in the organism.