added new code snippet from ~/proj