added solution 2