Class works ok