Making a prototype function