replace global_members with memberl
use std::list for member list of class