added solution for 5th challenge