(require 'package)

(require 'package) is needed for the instruction to work. Maybe add it?