Removed Redundancy in lessons learned

changed lessons learned display into a function instead of being copied
in two places