Makes Query class extendable