successfully rework Frame class, add unit testing