Implementation of artificial basis method