added solution to #13