skeleton code for MemoryPort class