Code improvement

Printf and attribute class removed