The packet environment can be used to decorate Karel's world with a house, a stair or a labyrinth. The program will for that purpose have to call one of the actions
The program which follows simulates Karel fetching his morning paper. It makes use of both the packet karel and the preceding environment packet. It is used as an introductory example in the textbook (see [2]).