State Rep. Jim Lucas pleads guilty, takes plea agreement