learning create a class by myself