Added solution to P4.