Implemented the local implementation ( now like a manual guided implementation)