added solution 3