Learning from photobiology how to design molecular devices using a computer.