Added methods with cpp syntax