assignment 4, SPoT

cs193p 2013, my solution for the assignment 4, SPoT