implemented BASIC front end