edited alpaca class