Add basic functionality of the lab06A.c program