Changed code to reflect a more useful use case - displaying opportunities on a Contact layout, where the contact being viewed is the primary contact.