extracted frontier to own class