solutions to exercises of chapter variables