Programmed Assembly of Pi-Conjugated Molecules and Polymers