Added solution 6