Adding comments and implementation example