How to write structural Logic in Class

In reply to Soobaan:

You cannot instantiate structural logic in procedural code. What you can is use variables from procedural code as inputs to structural code.