adding Problem 5 constructed to work in eclipse