Updated function stubs to perform tasks required by programming assignment