initial refactoring of Pineapple object