defining command architecture and implementing core for save command