Split the test program for Poly library into two programs using duck-typing and adaptation, respectively.