example code for http://blog.l0cal.net/2014/09/05/building-the-first-simple-mibe-template/