Improved Stack helper module
 * Renamed methods to have better names.
 * Split one method in two parts for better isolation of responsabilities.
 * Added some initial tests for the Stack helper module.