:working code sans bonus and comments