using inheritance for item classes