Attempt at getting simple inheritance to work