Change agqr module to class