starting implementation for memory add