hw 7/16 prototype methods