Adding q.py
Adding r.py
Adding outputs