added initialization helpers and an example