Updated instructions and added original code