Building Apps for the Internet of Things (IoT)