Declarating methods for functions_capsule

close #10