Lab6 refactoring code added
Lab6 refactoring code added