A simple implementation, imported from 'notes' application.