how it works added with code example and more info about the used plugins