added the gem code