new method 'get' to return an object based on id