Almost finished moving interface into a class, but it crashes at runtime