My attempts at solving http://reddit.com/r/dailyprogrammer tasks