function name was changed in soldierfactory class.
initialize functions are added.