Code that passes all the written tests. Am unsure about the operation times