Converted qmember into a class, and stated to add methods.