This code is for beginers