Implemented apple class.