Created 2 new functions, added comments to complete Assignment 2.