refactor the removal of unwanted packages
rename to puts
refactor append packages into method
cleanup whitespace