Part of second part of Lab03 project.