refactoring some practice files