my solutions for http://thereq.com/q questions