wrote rest of adapter.py and facade.py