First working version of gem