refactory code from InfoCommand to Package class