finished final group and code