A piece of code

If smb is interested in, I'll add comments later