Mobile Phone Programming: and its Application to Wireless Networking