solve x_ian problem
uploaded pset 6