made the basic parts of gsim.