added twocomponent.py