Make ajoke method completion allow user supplying the class

Signed-off-by: Bao Haojun <baohaojun@gmail.com>