wrote initial solution