My code for CS260_Java