How to instantiate groovy classes into jenkinsfile?

Hello, i want to create a pipeline that instantiate another groovy class or jar file, for use methods into my pipeline, something like a simple MVC structure where my jenkinsfile figures like a view. question: it’s posible in jenkins?