Peripheral nervous system consists of