ignore book solutions
DFT example from book chapter 13 with some modifications