added answer for #6