more WIP memory.java