finished example and added get_anchor to entity