replaced deprecated classes (Vector and Hashtable with ArrayList and Hashmap)