added project for lab4, created function as per instructions, needs debugging