first stab at assignment in cpp