Added package managers and trials. Code refactored. (task 37)