Mandatory Assignment 2 for Pervasive Computing class