added buildPlan method

I needed a method to build a plan so I added one to your library.

Thanks for giving me the base to work with.