Completed the functionality and displayed