A man who sold magic pencils to students who felt they needed more than luck to pass exams appeared in an Indonesian court Wednesday charged with fraud.

"Just write whatever you want and the computer will correct your answers with the help of the electronic wire on the pencil," he told customers, according to a court official.The official in the west Java city of Bandung said the pencils cost up to $445 each. The average annual per capita income in Indonesia is $500.

The salesman was arrested when customers complained to the police after failing entrance exams to a leading technical college.