Lab 2 with B and Required Functionality