beetle state design pattern voltooid