my logic outlined in the file

my logic outlined in the file