Code from projects done in java