* commit firts code, taken from Marco Bavagnoli