cleaned up my 'learning' code