First functional version
Replacing spaces with tabs