On spaces $ L^{p (x)} $ and $ W^{k, p (x)} $