initial gem code