my solutions to http://richardwiseman.wordpress.com/blog-2/