Amazon interview question

Design a program architecture for a public library for borrowing books.