edit memo
split code into files