creating a get method. Now the users can call .get(id) on client side