Figuring out more base cases and errors