Added solution with example