Add examples for refs and agents