added project 3 nested conditional.