non-working code
working on sample tx app

compiles, but doesn't work for some reason
figured out compiler flags to get example to work