new: rough version of assign codes to book use case done.