A code not working but here it is anyway