Beautified doodle code