Added solution for #9