step 1-3 of lab1