added example for getById