Boxed one dimensional electron trap