added solution for 47