Updated inclass1 with centering and scaling.