Implement procedural rules for commands. Converted put command as proof of concept.