revise example and add requirements.txt