Another version of constructors with prototypical inheritance