How Do Action Potentials Encode Information