Added source of Andrew Tesker's solution