Added solution 4