Created the findbyid method and added some comments