finished with step 5: writing main