modified rectangle struct and make progess on the create rectangle method