working on the parse_command method