entered code based on commented instructions