Cat

I added some functionalities to cat.py.