Adding file encoder example