Added solution to #15.