lab 5 core functionality'