updated challenge 4. added 6 and 7