added auxiliary constructor to memory package