Indentation looks a bit off. Are you using spaces?