Packages are just folder structures (well, they are more than that, but digging deeper is unnecessary).
You also need to specify the package for each class at the top (before the imports). Like:
...