I tried to get a grip on the glossaries package and understood a bit of it, but now I am stuck and need your help to get any further. I have written the following piece: