The aim of this project is to find a algorithm to establish and maintain a virtual enclosure around a mobile unit using GPS.