Relations and Patterns anf Functions