Adjusting Sample Code Issues #2