First commit
added case satement for command handleing