Some fragments of code which are useful in any kind of situation