Adding gems and index function for buidlings'