Ported tutorial 06 for linux.