added solution 4