Updated prototypal inheritance to use inheritance for click event handling