Lab 6 - Naive solution that works. No optimization done