Added code for quiz3