Modified so I could understand the way dwm works