Work from a Java class I took at foothill