What am I missing? When I run the program, it appears to be working properly.