adding notes and totally not plaigirized code