There was just one thing missing from my logic, I should have saw that... Well, everything worked out in the end!
Now I just gotta figure out about how to do a division of a module...