Implement getItem() method.