IoT, Cloud and Machine Learning: The Building Blocks