initial revision copied from account_example/account_symbolic.c.  Now to adapt for the spthread library
adapted to use pthreads (I hope)
fixed some typos