IOT Systems and Blockchain for Smart Cities