tutorial3: Completed coding & testing.