First functional version
Adaline working