Foundation stack order according to the problem description
Refactoring to use the 10 rank
Using new compilation options