Correcting typos and missing method declaration.