Automatic system of loading and unloading