Can't figure out why my class method isn't working.