assignment 3 starting code and query inputer implemented