Rewrote ECC example to use types+macros