adding necessary structures for ruby gem