implemented agreement type and agreement relationship