Added getObjects code sample