Added inheritance for prototypes, multiple inheritance should work, but is untested for now