<human>:  Lois has 40 books. She gives a fourth of her books to her nephew. From her remaining books, she donates a third of her books to the library. Then she purchases 3 new books from the book store. How many books does Lois have now?
<bot>: How many books does Lois give to her nephew? ** Lois gives 40 / 4 = <<40/4=10>>10 books to her nephew
How many books does Lois have left? ** Then Lois has 40 - 10 = <<40-10=30>>30 books
How many books does Lois donate to the library? ** Lois donates 30 / 3 = <<30/3=10>>10 books to the library
How many books does Lois have left? ** Then Lois has 30 - 10 = <<30-10=20>>20 books
How many books does Lois have now? ** After purchasing new books, Lois has 20 + 3 = <<20+3=23>>23 books
#### 23