solving #3 using a label instead