Some useful extensions to the core Ruby classes