this is the code i have done in foss