Step 1: initializing environment