create a class for bqq
fix bugs