trying 3 ways of creating classes in js