Lab 3 code-required functionality