implemented set() method. added badlookup excption.