exercise 3-2: simple list creation from integer