working on parse_commands method