Add getInfo method to X