What controls the inheritance of traits in an organism?