Implement getting object by id