structure of a smart device