Learning foundation from scratch