Splitting methods and variables through a program

Greetings!

I have been assigned a task that I can't do...
I have simplified the most that I could in this image:
http://i678.photobucket.com/albums/vv142/SpiralPegasus/Problema_zps54d3e5e7.png

Basically what I want to do is make a new class from scratch, with some methods, that would replace what the main file currently does.

I know images aren't the most common way of illustrating problems but I figured this was the simplest way, most of all considering all the code I'm using is in spanish.

Any help would be greatly appreciated!
Topic archived. No new replies allowed.