adds functioning find_by_id method