problem 6
default values
problem 7