Automated method writing for Object Oriented programming languages