How to build a smart city using mobile technology and IoT