fixed bug in challenge 3, added challenge 6