commented code for wacky calc