use dynamicProgramming decorator
make it a package