Made the update function protected instead of private. Forgot the hierarchy