Add encoder example.