add rotate command with an argument and modification of regex to geometry class and test