Added prewritten code