completed assignment . now rechecking for errors