Added solution to 1b exercise