Some ruby class that I use for my projects