Organised current classes into stack and queue packages.