Functionality learning through specification instructions