Add function declarations and main for ex4-3.c