starting making the birrt function