finished plugin and hiera code. It should work (maybe?), but it probably needs some debugging