Almost functional version with In-Memory DAO