implemented rest of Eliza's base code