memory demo program