added solution to 3.5