finalized Linear.idr