Refactoring trial to freetrial