Implemented the sample loader.
Implemented the command pattern with Loader.