Lab 3. Finished initial version of task 5.