added completed code for day3