added example for getting objective