Broke program down into functions, displays final answer