My messy code