Create a linux shell program

What to do
In this assignment you are to create a Linux shell program. A shell is simply a program that conveniently allows you to run other programs. Read up on your favorite shell to see what it does.
Details
Your shell must support the following:
The internal shell command “exit” which terminates the shell.Concepts: shell commands, exiting the shellSystem calls: exit()
A command with no argumentsExample: lsDetails: Your shell must block until the command completes and, if the return code is abnormal, print out a message to that effect.Concepts: Forking a child process, waiting for it to complete, synchronous executionSystem calls: fork(), execvp(), exit(), wait()
In essence, your solution must support the following:
Your solution must also support the following:
A command with argumentsExample: ls -lDetails: Argument 0 is the name of the commandConcepts: Command-line parameters
A command, with or without arguments, executed in the background using