added setTitle method.