1st version of exercise implementation.