Five Essentials for A Smart Factory