Perception lesson updates

Updates to code based on review and testing.