Money Demand in a Flexible Dynamic Fourier Expenditure System