Update code example to call getAllFoos method.