A molecule that stores genetic information and directs the development and functioning of living organisms.