Add gem structure to code