i reduced the presentation. i cut it after the inheritance. i also created a helper function that sets the prototype property and constructor on a function.