Final homework for the course"Ubiquitous Computing" in Zhejiang Univ