Updated Group class to handle nested Groups.