added solution for #13