Adding prototype functions for second and third part of assignment.