code from Friday added