Problem 3a done