added gem logic/algorithms to conroller
added the first couple of files required to make a gem