How Does Ideal Agent Work