added solution for 5