Lex's initial attempt