Adjusting Sample Code Issues #3