Finished working on simple testing example, optimization is ahead ...