first version of cpp classes looking like java one