Before modifying the pair_shape.py to its original functionality and make it more modularized.