Main method refactored
rar archive to submit as a homework