Added QuatumValue class and now it works