Building the smart factory of the future