fixed errors in goal
updated solution