Creation of extended memory instance in ral

hi all,
let’s say memory1 is built in regblock (RAL) which in present in file1 ,and i have extended memory2 from memory1 which is present in file2,so how &where i can create the instance of memory2 in environment in order to make the tasks to execute which are implemented in extended class