There is no need to use $argv[1..-1], $argv would be enough
Add pw()