expressions wacky

final code with comments