added group template type.  added a test main function for group type.