Added decomposition process for a simple test
Added logic for number between 1000 and 500