wrote methods for sam's code and stubs for rob's