problem 12 solution
factor ecb code out into its own wrapper lib