Method and apparatus for electronic data processing