corrected a little format error in the added solution